.. _Evaluate NeurEco Regression model with the Python API:

Evaluate NeurEco Regression model with the Python API
===========================================================

To evaluate a NeurEco Regression model in Python API, import **NeurEcoTabular** library:

.. code-block:: python

  from NeurEco import NeurEcoTabular as Tabular

Initialize a NeurEco object to handle the **Regression** problem:

.. code-block:: python

  model = Tabular.Regressor()

:std:ref:`Build NeurEco Regression model with the Python API` or load previously build and saved to *"the/path/to/the/saved/regression/model.ernn"* model:

.. code-block:: python

  model.load("the/path/to/the/saved/regression/model.ernn")

Once **model** contains a Regression model, call method **evaluate** with the parameters set accordingly:	

.. code-block:: python

  model.evaluate(inputs, vec=None)

Evaluates a Tabular model on a set of input data.

:inputs: required, NumPy array: input data array: shape (n, m) where n is the number of samples and m is the number of input features.
:vec: optional, NumPy array: perform evaluation with the model's weights set to values in vec.

:return: NumPy array: output data array: shape (n, p) where n is the number of samples and p is the number of output features.

